import request from '@/utils/request'

// 查询文档存储列表
export function listDocuments(query) {
  return request({
    url: '/exam/documents/list',
    method: 'get',
    params: query
  })
}

// 查询文档存储详细
export function getDocuments(id) {
  return request({
    url: '/exam/documents/' + id,
    method: 'get'
  })
}

// 新增文档存储
export function addDocuments(data) {
  return request({
    url: '/exam/documents',
    method: 'post',
    data: data
  })
}

// 修改文档存储
export function updateDocuments(data) {
  return request({
    url: '/exam/documents',
    method: 'put',
    data: data
  })
}

// 删除文档存储
export function delDocuments(id) {
  return request({
    url: '/exam/documents/' + id,
    method: 'delete'
  })
}
